package com.dianneng.show.http;

import com.dianneng.show.model.BaseResult;
import com.dianneng.show.model.DayInfo;
import com.dianneng.show.model.DeviceListInfo;
import com.dianneng.show.model.LastLightDataInfo;
import com.dianneng.show.model.MonthInfo;
import com.dianneng.show.model.ProjectListInfo;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018\9\20 0020.
 */

public interface UserInfoService {


    @GET("listday")
    Flowable<DayInfo> listday(@Query("SN") String SN, @Query("year") String year, @Query("month") String month, @Query("day") String day);

    @GET("listMonth")
    Flowable<MonthInfo> listmonth(@Query("SN") String SN, @Query("year") String year, @Query("month") String month);

    @GET("projectlist")
    Flowable<ProjectListInfo> projectlist();

    @GET("devicelist")
    Flowable<DeviceListInfo> devicelist(@Query("id") String id);

    @GET("lastLightData")
    Flowable<LastLightDataInfo> lastLightData(@Query("SN") String SN);

    @GET("command")
    Flowable<BaseResult> command(@Query("SN") String SN,@Query("command") String command);


}
